
import useRequest from '../hook/request';


// 配置的参数列表
export function getConfigListAPi(params: any, id: number) {
  return useRequest(
    `company/dept/config/getList/${id}`,
    params,
    'POST'
  )
}


// 配置的参数 添加
export function getAddDetailAPi(params: any) {
  return useRequest(
    `company/dept/config/addDetail`,
    params,
    'POST'
  )
}

// 配置的参数 修改
export function getUpdateDetailAPi(params: any) {
  return useRequest(
    `company/dept/config/updateDetail`,
    params,
    'POST'
  )
}



// 配置的参数 删除
export function getDelDetailAPi(params: any, id: number) {
  return useRequest(
    `company/dept/config/delDetail/${id}`,
    params,
    'POST'
  )
}